package com.yeung.exam;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class 奇安信_字符串中的最长连续数字串 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
//        String line = "abc360360xyz12";
        //abc360360xyz#123you
        Pattern pattern = Pattern.compile("[0-9]*");
        Matcher matcher = pattern.matcher(line);
        String result = "";
        while (matcher.find()) {
            String group = matcher.group();
            if (group.length() > result.length()) result = group;
        }
        System.out.println(result.length() + "/" + result);
    }
}
